package tests;

import tester.*;

@Example
public class TestDependencies {
	int testCounter = 0;
	
	public TestDependencies(){}
	
	@DependsOn("testThree")
	@TestMethod
	public void testFour(Tester t){
		t.checkExpect(testCounter, 3);
		testCounter++;
	}
	
	@TestMethod
	public void testOne(Tester t){
		t.checkExpect(testCounter, 0);
		testCounter++;
	}

	@DependsOn("testTwo")
	@TestMethod
	public void testThree(Tester t){
		t.checkExpect(testCounter, 2);
		testCounter++;
	}
	
	@DependsOn("testOne")
	@TestMethod
	public void testTwo(Tester t){
		t.checkExpect(testCounter, 1);
		testCounter++;
	}
	
	@DependsOn("testFour")
	@TestMethod
	public void testFive(Tester t){
		t.checkExpect(testCounter, 4);
	}

	
	public static void main(String[] args){
		Tester.runFullReport(new TestDependencies());
	}

	
}
